<?php
	require_once('message.php');

	class YHG implements MessageInterface{
		
		public function send_message($mobile,$content){
			$url = "http://121.43.225.10/sendSMSCode?";

			$param = array(
				'account' => 'cy-szmy',
				'password' => 'cy-szmy123',
				'phone' => $mobile,
				'content' => $content,
				'template' => 1011
			);

			$url .= http_build_query($param);


			$result = file_get_contents($url);

			if($result > -1){
				return true;
			}

			return false;
		}
	}
?>